package com.macro.mall.portal.sms.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author 郎
 */
@Data
@ConfigurationProperties(prefix = "sms")
public class MessageProperties {
    private String active;
    private Aliyun aliyun;
    private Tencent tencent;
    private Huawei huawei;
    private Local local;

    @Data
    public static class Huawei {
        private String endpoint;
        private String accessKey;
        private String secretKey;
        private String bucketName;
    }

    @Data
    public static class Tencent {
        private String secretId;
        private String secretKey;
        private String signName;
        private String sdkAppId;
        private String templateId;
        private String expireTime;
        private String region;
    }

    @Data
    public static class Local {
        private String expireTime;
    }

    @Data
    public static class Aliyun {
        private String endpoint;
        private String accessKeyId;
        private String accessKeySecret;
        private String bucketName;
    }
}
